
while{!GameEnd} do {

	// update list of units only each 60 secs
	// if(time - lastTime>60)then{
	
		// _units=allUnits;
		// lastTime=time;
		
		// _mySidePlayers=[];
		
		// {
		
			// if((side _x) == _side) then{
				// _mySidePlayers=_mySidePlayers+[_x];
			// };
			
		// }foreach _units;
		
	// };

	// we show informations only if the agent open his map (to save cpu usage) 
	// [tank dont have map but a control map so dont restrict to visibleMap]
	//waitUntil{ visibleMap or (player==TankPlayer) };
	
	_markers=[];

	
	{ // forEach	
		
		
			//player sideChat format["TEST : %1 , %2",_x, _side countSide _units];
				
			_markerobj = createMarkerLocal[format["mt%1",_x],getPos _x];
			_markerobj setMarkerShapeLocal "ICON";
			_markerobj setMarkerTypeLocal "mil_arrow2";
			_markerobj setMarkerColorLocal "ColorGreen";
			_markerobj setMarkerTextLocal format["%1",name _x];
			_markerobj setMarkerDirLocal (getDir _x);
			_markerobj setMarkerSizeLocal [0.5,0.5];
			
			_markers=_markers+[_markerobj];		
		
		
	}forEach (list HumanTrg);
		
	sleep 0.7;
	
	{
		deleteMarkerLocal _x;
	}forEach _markers;

	
};